package org.jiajie.coffeecodes.aop;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

/**
 * @author jie
 */
public class ProxyUtil {

    public static <T> T proxyOne(ClassLoader loader, Class<?>[] clz, InvocationHandler handler){
        return (T) Proxy.newProxyInstance(loader, clz, handler);
    }
}
